<?php
class BaseService{
	public static function validateInput($data, $rules){
		$validator = Validator::make($data, $rules);
		if($validator->fails()){
			throw new Exception($validator->messages()->first(), 1000);
		}
		return ;
	}
}
?>